﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CDRGH008App : ApiBaseApp<CDRGH008>
    {
        public CDRGH008App(IApiRepository<CDRGH008> repository) : base(repository)
        {
        }
        /// <summary>
        /// 全院预约号源查询
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public IEnumerable<CDRGH008> QueryCDRGH008By()
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CDRGH008>("exec usp_web_webtrans_CDRGH008 @czyh=@Czyh", param);
            return result;
        }
    }
}
